import {BaseApi} from "@/http/BaseApi";
import config from "@/config";

export class LoginApi extends BaseApi<any> {

    baseUrl = '/wechat'

    async login(data: { encryptedData: string, iv: string, code: string, signature: string,appId?: string }) {
        data.appId = config.appId
        return  await this.safeRequest("/login", data);
    }
}
